package com.diver.flinkdemo.service;




import com.diver.flinkdemo.dto.xxt.C40DataVO;
import com.diver.flinkdemo.entity.xxt.ClockSettings;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hesc
 * @since 2022-03-04
 */
public interface IClockSettingsService {
    /**
     * 获取闹钟列表
     * @param imei
     * @return
     */
    List<ClockSettings> getClockSettingsList(String imei);

    /**
     * 新增或者更新闹钟
     * @param uid
     * @param imei
     * @param clockType
     * @param clockStatus
     * @param settingTime
     * @param clockInstruct
     * @return
     */
    String addClockSettings(String uid, String imei, Integer clockType, Integer clockStatus, String settingTime, String clockInstruct, String userId);

    /**
     * 删除该条闹钟
     * @param uid
     * @return
     */
    String delClockSetting(String uid, String userId);

    /**
     * 更新闹钟状态
     * @param uid
     * @param userId
     * @return
     */
    ClockSettings updateClockStatus(String uid, String userId);

    /**
     * 更新闹钟下发回调设置
     * @param c40DataVO
     */
    void updateClockSettings(C40DataVO c40DataVO);

    /**
     * 更新闹钟状态
     * @param imei
     */
    void updateClockStatus(String imei);
}
